package ZhuJie.ZhuJIe2;

import java.lang.reflect.Method;

public class TestZhuJie {
    public static void main(String[] args) throws NoSuchMethodException {
        Method method = MyClass.class.getDeclaredMethod("example");
        MyAnnotation annotation = method.getAnnotation(MyAnnotation.class);
        String value = annotation.value();
        System.out.println("value = " + value);
    }
}
